package com.hongyue.neiBuLei;

public class Demo {
    public static void main(String[] args) {
        JieKou jk = () -> System.out.println("111");
        jk.test();

        jiekuo(jk);

        jiekuo1(() -> System.out.println("222"));

        jiekou2().test();
    }

    private static void jiekuo(JieKou jk) {
        jk.test();
    }

    private static void jiekuo1(JieKou jk) {
        jk.test();
    }

    private static JieKou jiekou2() {
        return new JieKou() {
            @Override
            public void test() {
                System.out.println("333");
            }
        };
    }
}
